﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CallBackPage.aspx.cs" Inherits="Skynet.WebSite.Demos.CallBackPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.js" type="text/javascript"></script> 
    <script src="http://ajax.microsoft.com/ajax/4.0/1/MicrosoftAjax.js" type="text/javascript"></script> 
    
    <script type="text/javascript">
        function SayHello() {
            var nombre = jQuery("#txtNombre").val();
            CallServer(nombre);
        }
        function ReceiveServerData(arg, context) {            
            jQuery("#txtNombre").val(arg);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input type="text" name="txtNombre" id="txtNombre" value=""/>
        <br />
        <input type="button" name="btnClick"  value="click" onclick="return SayHello();" />
    
    </div>
    </form>
</body>
</html>
